<style>
#YapYapResult table input{
	width:20px;
	height:20px;
	padding-left:0px;
	margin:0px;
}
input[type=button].delKom{
	width:20px;
	height:20px;
	overflow:hidden;
	text-indent:-100em;
	padding-left:0px;
	border:none;
	background-color:transparent;
	cursor:pointer;
}
</style>
<ul class="letter_filter" style="margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid #aaa;">
	<li><strong style="width:auto;">Strana: </strong></li>
	{{%loop start page}}
	<li><a href="javascript:void(0)" onclick="var f=document.getElementById('YapYapFilterForm'); f.elements['page'].value=this.innerHTML; submitForm(f,'komitenti.php','POST','setContent',1)" {{$current}}>{{$page}}</a></li>
	{{%loop end}}
</ul><br clear="all" />
<form method="post" action="javascript:void(0)" class="area" onsubmit="submitForm(this,'komitenti.php','POST','setContent',1)" id="YapYapFilterForm">
	<input type="hidden" name="a" value="yapyap" />
	<input type="hidden" name="page" value="{{$current_page}}" />
	
	<label for="filter_parent_btn" class="left">Komitent:</label>
	<input type="text" name="filter_parent_name" id="filter_parent_name" disabled="disabled" value="{{$filter_parent_name}}" />
	<input type="hidden" name="filter_parent" id="filter_parent" value="{{$filter_parent}}" />
	<input type="button" class="delete delKom" value="X" onclick="var pid=this.previousSibling.previousSibling; pid.value=''; var pn=pid.previousSibling.previousSibling; pn.value='';" />
	<input type="button" class="searchBtn" onclick="selectKomitent('filter_parent_name','filter_parent')" value="select" />
	<br clear="all" />
	<label for="filter_child_btn" class="left">Komitent:</label>
	<input type="text" name="filter_child_name" id="filter_child_name" disabled="disabled" value="{{$filter_child_name}}" />
	<input type="hidden" name="filter_child" id="filter_child" value="{{$filter_child}}" />
	<input type="button" class="delete delKom" value="X" onclick="var pid=this.previousSibling.previousSibling; pid.value=''; var pn=pid.previousSibling.previousSibling; pn.value='';" />
	<input type="button" class="searchBtn" onclick="selectKomitent('filter_child_name','filter_child')" value="select" />
	<br clear="all" />
	<input type="button" onclick="this.parentNode.elements['page'].value=1; submitForm(this.parentNode,'komitenti.php','POST','setContent',1)" value="filter" />
	<input type="button" onclick="YapYapAdd(this)" class="novi" value="novi" />
</form>
<div id="YapYapResult" class="area">
	{{$comment_start}}
	<table width="400">
		<tr class="head" align="center">
			<td colspan="2" width="50%">komitent</td>
			<td colspan="2" width="50%">komitent</td>
			<td></td>
		</tr>
		{{%loop start komitent1_id}}
		<tr>
			<td width="5%">{{$komitent1_id}}</td>
			<td>{{$komitent1_name}}</td>
			<td width="5%">{{$komitent2_id}}</td>
			<td>{{$komitent2_name}}</td>
			<td><input type="button" class="delete" value="" onclick="YapYapDelete('{{$komitent1_id}}','{{$komitent2_id}}')" /></td>
		</tr>
		{{%loop end}}
	</table>
	{{$comment_end}}
</div>